import 'package:flutter/material.dart';

class CheckButton extends StatefulWidget {
  const CheckButton({Key? key, required this.isChecked}) : super(key: key);
  final bool isChecked;

  @override
  State<CheckButton> createState() => _CheckButtonState();
}

class _CheckButtonState extends State<CheckButton> {
  @override
  Widget build(BuildContext context) {
    return widget.isChecked
        ? Icon(
            Icons.check_circle,
            color: Theme.of(context).primaryColor,
          )
        : const Icon(Icons.radio_button_unchecked_outlined);
  }
}
